#!/bin/sh 
# 
# Script to bring down and delete bridge br0 when QEMU exits 
# 
# Bring down eth0 and br0 
#
ifdown eth0 2>&1 1>/dev/null
ifdown br0 2>&1 1>/dev/null
ifconfig br0 down 
# 
# Delete the bridge
#
brctl delbr br0 
# 
# bring up eth0 in "normal" mode 
#
ifconfig eth0 -promisc
ifup eth0 
#
# delete the tap device
#
#
ip link delete $1
